<?php

use Illuminate\Database\Seeder;

class ShopersTableSeeder extends Seeder
{
    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        $data = [];
        for($i=1;$i<=10;$i++) {
        	$tmp = [];
        	$tmp['phone'] = '1'.rand(0,9).rand(0,9).rand(0,9).rand(0,9).rand(0,9).rand(0,9).rand(0,9).rand(0,9).rand(0,9).rand(0,9);
        	$tmp['shopername'] = str_random(5);
        	$tmp['password'] = Hash::make('123');
        	$tmp['address'] = str_random(10);
        	$data[] = $tmp;
        }

        $res = DB::table('shopers')->insert($data);
    }
}
